home *** CD-ROM | disk | FTP | other *** search
- Path: news.mcs.net!not-for-mail
- From: marcr@MCS.COM (Marc Rossi)
- Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.win32
- Subject: Re: MFC and console apps
- Followup-To: comp.lang.c++,comp.os.ms-windows.programmer.win32
- Date: 29 Jan 1996 22:25:29 -0600
- Organization: MCSNet Services
- Message-ID: <4ek6jp$k3g@Venus.mcs.com>
- References: <4ejfsi$h5s@gate.bronson.com>
- NNTP-Posting-Host: venus.mcs.com
- X-Newsreader: TIN [version 1.2 PL2 (KSD)]
-
- Scott Wade (SWade@bronson.com) wrote:
- : New to MFC and wondering whether it's possible to use MFC classes in a
- : CONSOLE app?
-
- I had the same question about a week ago, wanting to use the DAO classes
- in MFC for a console app. According to MS (at least according to the
- MS support person I spoke with) it is possible to write a console app
- using MFC but it is not a recommended procedure. Some of the MFC classes
- make references to classes that would only have been instantiated if
- you were running a Windowed app, such as a CWinApp object. MS suggested
- creating a dummy CWinApp instance if I really needed to use MFC. I passed
- on the suggestion (sounds like a kludge to me). FYI, I was unable to use
- DAO without having a MFC dependency (the DAO SDK on the VC CD has MFC
- dependencies).
-
- Hope this helps.
- Marc
- --
- Marc C. Rossi
- marcr@mcs.com
- http://www.mcs.com/~marcr
-